package com.hsgene.common.util.web.session;

import java.io.Serializable;

/**
 * 用户会话信息.
 *
 * @author wangbing
 * @version 1.0, 2018/7/2
 */
public final class UserInfo implements Serializable {

    private static final long serialVersionUID = -855057780952732138L;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 登录手机号，如果注册时使用的是账号名，则默认为账号名
     */
    private String userPhone;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 用户细分类型（可空）
     */
    private Byte userDetailType;

    /**
     * 角色类型
     */
    private String role;

    /**
     * 所属供应商ID（可空）
     */
    private Long supplierId;

    /**
     * 用户显示给其他人看到的名称(昵称)
     */
    private String showName;

    /**
     * 用户显示给其他人看到的头像
     */
    private String showHead;

    /**
     * 用户session_id
     */
    private String sessionId;
    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 后台管理员用户附加信息
     */
    private UserInfoExtra extra;

    public UserInfo() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Byte getUserDetailType() {
        return userDetailType;
    }

    public void setUserDetailType(Byte userDetailType) {
        this.userDetailType = userDetailType;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getShowHead() {
        return showHead;
    }

    public void setShowHead(String showHead) {
        this.showHead = showHead;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    //  todo 3期需求临时屏蔽
    public UserInfoExtra getExtra() {
        return extra;
    }

    public void setExtra(UserInfoExtra extra) {
        this.extra = extra;
    }
}